import request from '@/utils/request'
// 与cat相关的异步请求
//条件搜索
export function search(data) {
  return request({
    url: 'cat/search',
    method: 'post',
    data
  })
}
//保存
export function save(data) {
  return request({
    url: 'goods-cat/save',
    method: 'post',
    data
  })
}
//批量删除
export function del(data) {
  return request({
    url: 'cat/del',
    method: 'post',
    data
  })
}
//获取模板列表
export function get() {
  return request({
    url: 'template/searchAll',
    method: 'post'
  })
}